package ejemplo;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.layout.GridData;

public class Roles extends Composite {
	private Text textNombre;
	private Text textPrivilegios;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public Roles(Composite parent, int style) {
		super(parent, style);
		setLayout(new GridLayout(2, false));
		new Label(this, SWT.NONE);
		new Label(this, SWT.NONE);
		
		Label lblNombre = new Label(this, SWT.NONE);
		lblNombre.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
		lblNombre.setText("Nombre");
		
		textNombre = new Text(this, SWT.BORDER);
		GridData gd_textNombre = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);
		gd_textNombre.widthHint = 134;
		textNombre.setLayoutData(gd_textNombre);
		
		Label lblPrivilegios = new Label(this, SWT.NONE);
		lblPrivilegios.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
		lblPrivilegios.setText("Privilegios");
		
		textPrivilegios = new Text(this, SWT.BORDER);
		GridData gd_textPrivilegios = new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1);
		gd_textPrivilegios.widthHint = 119;
		textPrivilegios.setLayoutData(gd_textPrivilegios);

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}
}
